package com.lt73.springplugin.config;

import com.lt73.springplugin.service.SmsService;
import com.lt73.springplugin.service.impl.SmsServiceImpl;
import com.lt73.springplugin.service.impl.SmsServiceImpl2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.plugin.core.config.EnablePluginRegistries;

/**
 * @Author: hanxiao
 * @Date: 2022/3/18 15:52
 */
@Configuration
@EnablePluginRegistries(SmsService.class)
public class BeanConfig {

    @Bean
    public SmsServiceImpl smsService() {
        return new SmsServiceImpl();
    }

    @Bean
    public SmsServiceImpl2 smsService2() {
        return new SmsServiceImpl2();
    }
}